package top.aiprogram.user.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import top.aiprogram.user.dao.TeacherMapper;
import top.aiprogram.user.entity.Teacher;


/**
 * Created by HP on 2018/10/11.
 */
@Service
public class TeacherServiceImpl implements TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;
    @Transactional
//    @Override
    public int creatTeacher(Teacher teacher) {
        int i = teacherMapper.insertSelective(teacher);
        return i;
    }
}
